@import "var";

.weui-uploader__file {
    position: relative;
    text-align: center;

    i {
        font-style: normal;
        background-color: red;

        color: #FFF;
        font-size: 12px;
        border-radius: 100%;
        padding: 0 5px;
        position: absolute;
        bottom: 3px;
        right: 3px;
        cursor: pointer;
    }

    .uploader-name {
        padding: 0 3px;
        font-size: 12px;
        background-color: $color;
        color: #FFF;
        @extend .toh-1;
    }

}

.weui-cell_vertical{
    display: block !important;
    clear: both !important;
    height: auto;
    overflow: hidden;
    .weui-label{
        margin-bottom: 10px;
    }
}

.weui-icon-address {
    -webkit-mask-image: url("");
    mask-image: url("");
    color: #bababa;
    cursor: pointer;
}

.weui-cell_select-after .weui-select {
    height: 25px;
    line-height: 25px;
}

.QEditor {
    padding-bottom: 30px;
}

.QE_DATA_EDITOR {
    min-height: 150px;
    background-color: #f6f6f6;
    padding: 10px 5px 30px 5px;
    font-size: 14px;
    height: auto;
    overflow: hidden;

    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

.weui-check__label {
    font-size: 14px;
    background-color: #f6f6f6;
    border-bottom: 1px dashed #FFF;
}


.weui-cells__title {
    margin-bottom: 10px;
}

.weui-uploader__title, .weui-label {
    color: #666;
    font-size: 14px;
}

.weui-cell-editor {
    padding: 16px 0 0 0 !important;

    .weui-label {
        padding-left: 16px;
    }
}

.weui-cell {
    &:before {
        display: none;
    }

    &:nth-child(2n) {
        background-color: #fbfbfb;
    }
}

.savearea {
    padding: 30px 0;
}

#picker-search {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background: transparent;
    border: 0;
}

.weui-label {
    display: inline-block;
    font-weight: 500;

}

.placeholder {
    display: inline-block;
    width: calc(100% - 130px);
    font-size: 12px;
    text-align: right;
    padding-left: 5px;
    color: #DDD;
    @extend .toh-1
}

.weui-half-screen-dialog {
    padding: 0 !important;

    .weui-half-screen-dialog__hd {
        padding-left: 20px;
        padding-right: 20px;
    }

    #picker-content {
        padding: 10px 15px;
        position: relative;
    }
}

.attr-save {
    position: absolute;
    right: 15px;
    top: 20px;
    color: $color;
    cursor: pointer;
}

#dialog-attr-content {
    p {
        margin: 10px 0;
    }

    .label {
        display: inline-block;
        width: 100px;
        text-align: right;
    }

    input {
        border: none;
        padding: 10px;
        border-bottom: 1px dashed #EEE;
        width: calc(100% - 150px);
        margin-left: 10px;
    }

    .qedit-attr {
        text-align: center;

        input {
            display: inline-block;
            width: 40% !important;
            min-width: 150px;
            margin: 0;
        }
    }

}

.qedit-attr-item {
    font-size: 14px;
    background: #EEE;
    border-radius: 3px;
    margin-bottom: 10px;
    position: relative;

    p {
        display: inline-block;
        margin-right: 10px;
        padding: 5px 10px;
    }

    sup {
        background: red;
        border-radius: 100%;
        position: absolute;
        right: 0;
        color: #FFF;
        padding: 0 3px;
        font-size: 8px;
        top: 0;
    }
}

#picker-content {
    overflow-x: hidden;

    .picker-item {
        width: 96%;
        padding: 10px 1%;
        margin: 1%;
        cursor: pointer;
        color: #3e3e3e;
        font-family: 楷体;
        text-align: left;
        display: inline-block;
        background-color: #f5f5f5;
        border-radius: 5px;
        border: 1px dashed #EEE;

        .field-name {
            text-align: right;
            margin-right: 10px;
            width: 80px;
            display: inline-block;
        }

        p {
            display: block;
            margin-bottom: 5px;
        }

        &:hover {
            background-color: $color;
            color: #FFF;
        }
    }
}

@media screen and (min-width: 900px) {
    #picker-content {
        .picker-item {
            width: 29%;
            padding: 10px 1%;
            margin: 1%;
        }
    }
}


.weui-input, .weui-textarea {
    font-size: 15px !important;
}

.weui-textarea {
    height: auto !important;
}

.weui-select-options {

    .weui-cell__hd {
        margin-bottom: 15px;
    }

    .placeholder {
        color: #a9a9a9;
        float: right;
    }
}

.quiker-edit-option {
    min-width: 80px;
    border-radius: 3px;
    width: calc(31% - 10px);
    margin: 1%;
    padding: 10px 5px;
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-align: center; /* 垂直居中 */
    -webkit-box-pack: center; /* 水平居中 */
    align-items: center;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    background-color: #EEE;
    float: left;
    height: 30px;

    &:hover, &.QEditor-selected {
        background-color: $color !important;
        color: #FFF;
    }

    &.bg-red {
        color: #FFF;
        background: #fe8a8a;
    }
}

.bg-color {
    background-color: $color !important;
    color: #FFF;
}

.area-value {
    text-align: center;
    display: block;
    font-size: 13px;
    padding: 20px 0;
    word-break: keep-all;
    white-space: nowrap;
    width: calc(100% - 2px);

    span {
        cursor: pointer;
        margin-bottom: 15px;
        padding: 5px 9px;
        border-radius: 3px;
        background-color: $bg;
        display: inline-block;
    }
}

.multi-areas {
    margin-top: 10px;
}

.qedit-select-area {
    font-size: 14px;
    cursor: pointer;
    position: absolute;
    right: 10px;
}

.qeditor-area-item {
    font-size: 13px;
    background: #ececec;
    cursor: pointer;
    padding: 5px 9px;
    border-radius: 3px;
    display: inline-block;
    margin: 0 5px 5px 0;
    position: relative;

    sup {
        background: red;
        color: #FFF;
        font-size: 8px;
        padding: 2px 3px;
        position: absolute;
        right: 0;
        top: 0;
        line-height: 1;
        border-radius: 100%;
    }
}

.area-field {
    .weui-cell__hd {
        margin-bottom: 0;
    }

    .quiker-edit-option {
        height: 30px !important;
        vertical-align: middle;
        line-height: 15px;
        font-family: 楷体;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;

        &.bg-red {
            color: #FFF;
        }
    }

}



#QEditor-dialog {

    #QEditor-dialog-content {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 999;
        height: calc(100% - 100px);
        overflow-y: auto;
        background-color: $bg;
        #QEditor {
            padding-bottom: 150px;

            .savearea {
                position: fixed;
                background: #f9f9f9;
                bottom: 0;
                width: 100%;
                left: 0;
            }
        }
    }

    .QEditor-mask {
        background: #000;
        opacity: 0.6;
        width: 100%;
        height: 100%;
        top: 0;
        position: fixed;
    }

    #QEditor {
        background: #FFFFFF;
        padding: 1%;
        position: relative;
    }
}


.qedit-mini-field {
    display: inline-block;
    font-size: 12px;
    background: #f5f5f5;
    padding: 1px 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #8b8b8b;

    .value {

    }
}

.tox.tox-tinymce-inline{
    z-index: 9999999;
}

.tox-toolbar{
    @extend .no-scrollbar ;
}

.json-editor-container {
    display: flex;
    align-items: flex-start; 
    .weui-cell__bd {
        flex: 1;
    }
} 
